﻿using System;
using Vroom.Common.Config;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Vroom.Config.Test
{
    [TestClass]
    public class ConfigUtilsTest
    {
        [TestMethod]
        public void GetColumnMappingstest()
        {
            ConfigUtils configUtils = new ConfigUtils();

            IConfigItem configItem = new ConfigItem()
            {
                Source = @".\121FIN07_20140423.csv",
                DestinationConnectionString = @"Data Source=(localdb)\Projects;Initial Catalog=Staging;Integrated Security=SSPI;",
                Destination = @"ABANK_Fin07"
            };

            string colMappings = configUtils.GetColumnMappings(configItem);
        }
    }
}


